package com.bean;

import com.annotation.Nigger;

/**
 * @author Cc
 * 2024-03-26
 */
@Nigger("slave")
public class Black extends People implements Work {
    private String name;

    private int age;

    private float weight;

    public Black() {
    }

    public Black(String name, int age, float weight) {
        this.name = name;
        this.age = age;
        this.weight = weight;
    }

    @Override
    public void work() {
        System.out.println("摘棉花......");
    }

    @Override
    public String toString() {
        return "Black{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", weight=" + weight +
                '}';
    }
}
